\documentclass[12pt]{article}
\usepackage{amsfonts, amsmath, amssymb, bm} %Math fonts and symbols
\usepackage{dcolumn, multirow} % decimal-aligned columns, multi-row cells
\usepackage{graphicx, subfigure, float} % graphics commands
\usepackage{enumitem}
\usepackage{listings,relsize}
\lstloadlanguages{R}
\newcommand{\lil}[1]{\lstinline|#1|}
\usepackage[margin=1in]{geometry} % sets page layout
\usepackage{setspace}% allows toggling of double/single-spacing
\usepackage{verbatim}% defines environment for un-evaluated code
\usepackage{natbib}% defines citation commands and environments.
\usepackage{url}% allows including urls with \url{} field.
\usepackage[font=small,format=plain,labelfont=bf,up,textfont=normal,up,justification=justified,singlelinecheck=false]{caption}
\usepackage[utf8x]{inputenc}
\usepackage{lmodern}
\usepackage{hyperref}
\usepackage{eurosym}
\usepackage{lscape}
\usepackage{authblk}
\usepackage[T1]{fontenc}
\usepackage{tabularx}
\usepackage{arydshln}
\usepackage[english]{babel}


\singlespace % set document spacing to single
\bibpunct[, ]{(}{)}{,}{a}{}{,} % sets the punctuation of the bibliography entires.
\newcolumntype{d}[1]{D{.}{.}{#1}} % defines a decimal-aligned column


\date{\today}


\usepackage[table]{xcolor}

\usepackage{hyperref}

\definecolor{darkblue}{rgb}{0.0, 0.0, 0.45}
\hypersetup{
	colorlinks,
	citecolor=darkblue,
	filecolor=black,
	linkcolor=black,
	urlcolor=black
}

\makeatletter
\def\blfootnote{\xdef\@thefnmark{}\@footnotetext}
\makeatother

\begin{document}

\pagenumbering{gobble}

\setcounter{table}{2}

	\begin{table}[ht]
	\caption{Descriptive statistics conditional on having validated turnout}
	\label{tab:desc_all}
	
	\begin{tabular*}{\textwidth}{l @{\extracolsep{\fill}} cccccc} \hline
		
		&&&&&& \\	
		& \multicolumn{3}{c}{All survey respondents} & \multicolumn{3}{c}{Danish voters (age<76)} \\
		& Mean & Sd & N & Mean & Sd & N \\ \hline	
		Age (years)                    & 48.5 &	15.6 & 2,172 & 46.7 & 16.2 & 3,747,832   \\ 
		Elementary School (\%)         & 22.0 & 41.4 & 2,146 & 27.2 & 44.5 & 3,698,696   \\ 
		High School (\%)               & 8.2  & 27.5 & 2,146 &  9.2 & 28.9 & 3,698,696   \\  
		Vocational training (\%)       & 34.0 & 47.4 & 2,146 & 34.7 & 47.6 & 3,698,696   \\ 
		Short/mid-cycle education (\%) & 26.0 & 43.9 & 2,146 & 20.9 & 40.7 & 3,698,696   \\
		Long-cycle education (\%) 	   &  9.9 & 29.8 & 2,146 &  8.0 & 27.1 & 3,698,696   \\
		Female (\%)                    & 49.6 & 50.0 & 2,172 & 49.9 & 50.0 & 3,747,832   \\ 
		Native Dane (\%)               & 96.7 & 17.8 & 2,172 & 95.5 & 20.8 & 3,747,832   \\ \hline 
		
		
		&&&&&& \\
		
		& \multicolumn{3}{c}{Respondents without} & \multicolumn{3}{c}{Danish voters (age<76) } \\
		& \multicolumn{3}{c}{validated turnout}       & \multicolumn{3}{c}{without validated turnout}\\			
		& Mean & Sd & N & Mean & Sd & N \\ \hline	
		
		Age (years)                    & 49.5 & 14.4 & 538 & 48.8 & 15.5 & 937,731  \\ 
		Elementary School (\%)         & 22.4 & 41.7 & 536 & 29.3 & 45.5 & 927,068  \\ 
		High School (\%)               &  5.0 & 21.7 & 536 &  5.9 & 23.5 & 927,068  \\ 
		Vocational training (\%)       & 40.0 & 49.0 & 536 & 39.8 & 49.0 & 927,068  \\ 
		Short/mid-cycle education (\%) & 25.5 & 43.6 & 536 & 19.8 & 39.8 & 927,068  \\
		Long-cycle education (\%) 	   &  7.2 & 25.9 & 536 &  5.3 & 22.3 & 927,068  \\
		Female (\%)                    & 52.6 & 50.0 & 538 & 49.2 & 50.0 & 937,731  \\  
		Native Dane (\%)               & 97.3 & 16.1 & 538 & 97.4 & 16.0 & 937,731  \\ \hline 
		
		&&&&&& \\
		
		& \multicolumn{3}{c}{Respondents with} & \multicolumn{3}{c}{Danish voters (<age 76)} \\
		& \multicolumn{3}{c}{validated turnout}       & \multicolumn{3}{c}{with validated turnout}\\			
		& Mean & Sd & N & Mean & Sd & N \\ \hline	
		
		Age (years)                    & 48.1 & 16.0 & 1,634 & 46.0 & 16.4 & 2,810,101   \\ 
		Elementary School (\%)         & 21.8 & 41.3 & 1,610 & 26.5 & 44.1 & 2,771,628   \\ 
		High School (\%)               &  9.4 & 29.2 & 1,610 & 10.3 & 30.4 & 2,771,628   \\ 
		Vocational training (\%)       & 31.8 & 46.6 & 1,610 & 33.0 & 47.0 & 2,771,628   \\ 
		Short/mid-cycle education (\%) & 26.2 & 44.0 & 1,610 & 21.3 & 40.9 & 2,771,628   \\  
		Long-cycle education (\%) 	   & 10.8 & 31.0 & 1,610 &  8.9 & 28.5 & 2,771,628   \\ 
		Female (\%)                    & 48.6 & 50.0 & 1,634 & 50.1 & 50.0 & 2,810,101   \\ 
		Native Dane (\%)               & 96.5 & 18.4 & 1,634 & 94.8 & 22.1 & 2,810,101   \\ \hline 
		
	\end{tabular*} \\
	\footnotesize Except for a very small proportion of disenfranchised voters, the population of voters and Danish citizen are almost identical. Only voters younger than 76 was sampled for the DNES.
\end{table}
	
\end{document}

